<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>首页</title>
    <jsp:include page="include/resource.jsp"/>
</head>
<body>
<jsp:include page="include/header.jsp"/>
<div class="container">
    <div class="col-xs-9">
        <div class="text-center">
            <h1>${activity.name}</h1>
            <span class="label label-success"><fmt:formatDate value="${activity.addtime}" pattern="yyyy-MM-dd HH:mm:ss"/> </span>
            <a onclick="history.go(-1)" class="pull-right btn" style="    margin-left: -67px;">返回</a>
            <hr/>
        </div>
        <div style="margin-bottom: 20px">
            ${activity.content}
        </div>
    </div>
    <div class="col-xs-3">
        <div class="row">
            <ul class="list-group text-center">
                <li class="list-group-item active">最新公告</li>
                <c:forEach items="${activityList}" var="item">
                    <li class="list-group-item" onclick="javascript:location.href = '/notice/${item.id}.do'">${item.name}</li>
                </c:forEach>

            </ul>
        </div>
    </div>
</div>
</body>
</html>
